<?php

if (!defined('BASEPATH'))
    exit('No direct script access allowed');

class Administrador extends CI_Controller {

    public function index() {
        /*   $this->load->view('estructura/head');
          $this->load->view('intranet_view');
          $this->load->view('estructura/footer'); */
    }

    public function personal() {
        $this->load->model("personal_model");
        $data['registros'] = $this->personal_model->Personal();
        $this->load->view('estructura/head');
        $this->load->view('intranet/personal_view',$data);
        $this->load->view('estructura/footer');
    }

    public function listarTipoEmpleado() {
        $this->load->model("personal_model");
        $data['registros'] = $this->personal_model->tiposPersonal();

        echo json_encode($data);
    }

}